<include file="public@header"/>
</head>
<body>
<div class="lyear-layout-web">
        <div class="lyear-layout-container">
            <!--页面主要内容-->
            <main class="lyear-layout-content">
              
                <div class="container-fluid">
                
                    <div class="row">
                       <div class="col-md-12">
                            <div class="card">
                            <ul class="nav nav-tabs">
                                <li><a href="{:url('route/index')}">URL美化</a></li>
                                <li><a href="{:url('route/add')}">添加URL规则</a></li>
                                <li class="active"><a>编辑URL规则</a></li>
                            </ul>
                            <div class="card-body">
                                <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('route/editPost')}">
                                    <div class="form-group">
                                        <label for="input-full_url" class="col-sm-2 control-label">原始网址<span class="form-required">*</span></label>
                                        <div class="col-md-6 col-sm-10">
                                            <input type="text" class="form-control" id="input-full_url" name="full_url" value="{$full_url}">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="input-url" class="col-sm-2 control-label">显示网址<span class="form-required">*</span></label>
                                        <div class="col-md-6 col-sm-10">
                                            <input type="text" class="form-control" id="input-url" name="url" value="{$url}">
                                            <p class="help-block"><span id="url-vars"></span> url格式一般为list/:param1/:param2或 list-&lt;param1&gt;-&lt;param2&gt;
                                            </p>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="input-status" class="col-sm-2 control-label">是否启用</label>
                                        <div class="col-md-6 col-sm-10">
                                            <select class="form-control" name="status" id="input-status">
                                                <option value="1">启用</option>
                                                <php>$status_selected=$status?"":"selected";</php>
                                                <option value="0" {$status_selected}>禁用</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-sm-offset-2 col-sm-10">
                                            <input type="hidden" name="id" value="{$id}">
                                            <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
                                            <a class="btn btn-default" href="{:url('Route/index')}">返回</a>
                                        </div>
                                    </div>
                                </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </main>
        </div>
    </div>
<script src="__TMPL__/public/assets/js/admin.js"></script>
</body>
</html>